
//
//  CommitDataBottomCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/7/31.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "CommitDataBottomCell.h"

@implementation CommitDataBottomCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        UIImageView *ImageView = [[UIImageView alloc] init];
        [self addSubview:ImageView];
        [ImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(scaleLeftAndRight(20));
            make.centerY.equalTo(self.mas_centerY);
            make.size.mas_equalTo(CGSizeMake(5, 5));
        }];
        UILabel *labell = [[UILabel alloc] init];
        [self addSubview:labell];
        [labell mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.mas_centerY);
            make.left.equalTo(ImageView.mas_right);
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(100), scaleTopAndBottom(20)));
        }];
        UILabel *namelabell = [[UILabel alloc] init];
        [self addSubview:namelabell];
        [namelabell mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.mas_top).offset(scaleTopAndBottom(10));
            make.right.equalTo(self.mas_right).offset(scaleLeftAndRight(-40));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(200), scaleTopAndBottom(20)));
        }];
        UILabel *adresslabell = [[UILabel alloc] init];
        [self addSubview:adresslabell];
        [adresslabell mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.mas_bottom).offset(scaleTopAndBottom(-10));
            make.right.equalTo(self.mas_right).offset(scaleLeftAndRight(-40));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(200), scaleTopAndBottom(20)));
        }];
        UIImageView *ImageView1 = [[UIImageView alloc] init];
        [self addSubview:ImageView1];
        [ImageView1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right).offset(scaleLeftAndRight(-20));
            make.centerY.equalTo(self.mas_centerY);
            make.size.mas_equalTo(CGSizeMake(15, 20));
        }];
        namelabell.backgroundColor = [UIColor redColor];
        adresslabell.backgroundColor = [UIColor greenColor];
        ImageView.backgroundColor = [UIColor cyanColor];
        ImageView1.backgroundColor = [UIColor purpleColor];
        labell.text = @"联系地址";
        labell.backgroundColor = [UIColor blueColor];
    }
    return self;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
